package com.ruoyi.charge.service.impl;

import com.ruoyi.charge.domain.ChargeCharge;
import com.ruoyi.charge.domain.vo.DoctorPatientDrugVo;
import com.ruoyi.charge.domain.vo.DoctorRegisterVo;
import com.ruoyi.charge.mapper.ChargeChargeMapper;
import com.ruoyi.charge.service.IChargeChargeService;
import com.ruoyi.doctor.domain.DoctorPatientDrug;
import com.ruoyi.drug.domain.DrugsDurg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChargeChargeServiceImpl implements IChargeChargeService {
    @Autowired
    private ChargeChargeMapper chargeChargeMapper;

    @Override
    public ChargeCharge selectCharge(Long registeredId) {
        return chargeChargeMapper.selectChargeChargeById(registeredId);

    }

    @Override
    public DoctorRegisterVo selectDoctorRegisterVoById(String registeredId) {
        return chargeChargeMapper.selectDoctorRegisterVoById(registeredId);
    }

    @Override
    public List<DoctorPatientDrugVo> selectDrugsDurgList(String registerNumber) {
        return chargeChargeMapper.selectDrugsDurgList(registerNumber);
    }

    @Override
    public int durgChargeByids(Long[] ids) {
        return chargeChargeMapper.durgChargeByids(ids);
    }

    //现金支付
    @Override
    public int durgChargeByid(Long[] ids) {
        return chargeChargeMapper.durgChargeByids(ids);
    }

    @Override
    public DoctorRegisterVo updatePayStatusById(Long drugId,Long patientId) {
        return chargeChargeMapper.updatePayStatusById(drugId,patientId);
    }
}

